// router/index.js
import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path:"/",
        name: "home",
        component: () => import("@/views/HomePage.vue"),
        meta:{
            title:"首页"
        }
    },
    {
        path:"/player",
        name: "player",
        component: () => import("@/views/Player.vue"),
        meta:{
            title:"视频播放"
        }
    }
];


const router = createRouter({
    history:createWebHistory(import.meta.env.BASE_URL),
    routes: routes
});


export default router;
